<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //创建数组 1.用new创建
        var arr=new Array();
        //2.利用数组字面量创建数组[]
        var arr=[];//创建一个空的数组
        var arr1=[1,2,true,'pink'];
        console.log(arr1);
        //3.数组里的数据用,分割
        
    </script>
</head>
<body>
    
</body>
</html>